package com.itg.vms.dao;

import com.itg.vms.entity.Movies;
import com.itg.vms.entity.User;

import java.util.List;

public interface MoviesDao {
    //添加视频
    boolean addMovies(Movies movies);
    //删除视频
    int deleteMoviesById(String movie_Id);
    //修改视频信息
    boolean UpdateMoviesById( String movie_Picture,String movie_ChineseName,String movie_Name,String movie_Age,
                              String movie_Place,String movie_Type,String movie_Language,
                              String movie_Subtitle,String movie_ReleaseDate,String IMDbScore,String DBScore,
                              String movie_Times,String movie_Director,String movie_Scriptwriter,
                              String movie_Actor,String movie_Introduction,String movie_Link,Integer movie_Id);

    //显示视频信息
    Movies DisplayMoviesById(String movie_id);

    //分页查询所有视频信息
    List<Movies> selectAllMovies(Integer currentPage,Integer pageSize);
    //总记录数
    Long getAllMoviesSize();

    //通过名字查询用户

    List<Movies> selectMoviesByName( String movie_Name);
    /**
     * 通过id查询电影详细信息
     * @param id 要查询的电影id
     * @return 电影实体
     */
    Movies getMovieById(Integer id);
}
